package com.cost;

import com.rmb.mart.utils.IdWorker;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author VULCAN
 */
@SpringBootApplication
@EnableEurekaClient
@MapperScan(basePackages="com.cost.dao")
public class CostApplication {

    public static void main(String[] args) {
        SpringApplication.run(CostApplication.class,args);
    }

    @Bean
    public IdWorker idWorker(){
        return new IdWorker();
    }
}
